﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.supplier
{
    [SugarTable("Supplier")]
    public class Supplier:BaseEntity
    {
        /// <summary>
        /// 主键序号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int SupplierId { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string SupplierName { get; set; }
        /// <summary>
        /// 供应商别名
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string SupplierAlias { get; set; }
        /// <summary>
        /// 供应商简称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string SupplierAbbreviation { get; set; }
        /// <summary>
        /// 省市编号
        /// </summary>
        public string ProvinceCityId { get; set; }
        /// <summary>
        /// 供应料品名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string MaterialTypeName { get; set; }
        /// <summary>
        /// 供应商分类
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string SupplierType { get; set; }
        /// <summary>
        /// 供应商等级
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string SupplierLeave { get; set; }
        /// <summary>
        /// 公司地址
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string CompanyAddress { get; set; }
        /// <summary>
        /// 邮编
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string Postcode { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string Phone { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string Remark { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool Sdate { get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string OpeningBank { get; set; }
        /// <summary>
        /// 地址电话
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string AddressPhone { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string AccountNumber { get; set; }
        /// <summary>
        /// 税号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string DutyParagraph { get; set; }
        /// <summary>
        /// 业务联系人
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string BusinessContact { get; set; }
        /// <summary>
        /// 业务手机号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string BusinessPhone { get; set; }
        /// <summary>
        /// 财务联系人
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string FinancialContact { get; set; }
        /// <summary>
        /// 财务手机号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string FinancialPhone { get; set; }
    }
}
